#include "color.hpp"
using namespace std;

void WriteColor(std::ostream &out, Color pixelColor){
    double r=pixelColor.X;
    double g=pixelColor.Y;
    double b=pixelColor.Z;
    int ir = int(256 * r);
    int ig = int(256 * g);
    int ib = int(256 * b);
    out << ir <<" " << ig <<" " << ib << '\n';
}